package com.nf.service;

import com.nf.entity.Account;

import java.util.Date;

//根据项目定方法，与dao层不一样
public interface AccountService {
    //注册
    public Account addAccount(Account account);
    //登录
    public Account login(String userName, String password);
    //查询余额
    public Integer queryBanlanceById(Integer userid);
    //修改密码
    public boolean updatePassword(String newPassword,String oldPassword,Integer userId);
    //存钱
    public boolean saveMoney(Integer money,Integer userId);
    //取钱
    public boolean getMoney(Integer money,Integer userId);
    //转账
    public boolean transMoney(Integer money,Integer UserIdDest,Integer userId);
}
